<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>样式绑定</title>
    <script src="js/vue.js"></script>
    <style>
        /*active样式名称*/
        .active {
            width: 100px;
            height: 100px;
            border: blue 1px solid;
        }
    </style>
</head>
<body>
<div id="app">
    <p>:class="变量名"</p>
    <!--<div class="active">这里是使用bind:class的DIV</div>-->
    <div :class="activeClass">这里是使用bind:class的DIV</div>
</div>

<script>
    new Vue({
        el:"#app",
        data: {
            activeClass: "active"
        }
    });
</script>
</body>
</html>